/* author: Mariana Horita
   mariana.horita@gmail.com
   file: A2E1.cs*/


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Resolucao
{
    public partial class A2E1 : Form
    {
        public A2E1()
        {
            InitializeComponent();
        }

        private void lbl1_Click(object sender, EventArgs e)
        {
            lbl2.Visible = !lbl2.Visible;
        }

        private void lbl2_MouseMove(object sender, MouseEventArgs e)
        {
            Random rd = new Random();
            lbl2.ForeColor = Color.FromArgb(rd.Next(255), rd.Next(255), rd.Next(255));
        }
    }
}
